package com.powerunion.datacollection.dao;

import java.util.List;
import net.sf.json.JSONArray;
import com.powerunion.datacollection.model.FieldItem;
import com.powerunion.datacollection.model.SubFormSet;
import com.powerunion.datacollection.model.SysServer;

public interface SubFormSetDao {

	public boolean save(SubFormSet formSet) throws DaoException;

	public boolean delete(String id)throws DaoException;

	public SubFormSet findFormSetByKey4MaintTbl(String formId) throws DaoException;
	
	public SubFormSet findFormSetByKey4SubTbl(String formId) throws DaoException;

	public List getFields(String syrName, String tableName) throws Exception;

	public List getServerTables(String svrName) throws DaoException;

	public List getComboFields(FieldItem item) throws DaoException;

	public SysServer getSysServer(String syrName) throws Exception;

	public JSONArray getSubFormSetDataSourceTree(String formId,String paraSeq)
			throws Exception;
	
}
